package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.couponconversioncode;
import com.ymttest.utils.EnvSetup;

public class couponconversioncodeWapper {
	SqlManager manage;

    public couponconversioncodeWapper() {
        manage = new SqlManager("mysqlcoupon" + EnvSetup.getEnv());
    }
    
    public List<couponconversioncode> selectByConversionId(int ConversionId) {
        List<couponconversioncode> result = manage
                .getSelectResults(
                        "com.ymttest.database.mapping.couponconversioncodeMapper.selectByConversionId",
                        ConversionId);
        return result;
    }
    
    public List<couponconversioncode> getTop1() {
        List<couponconversioncode> result = manage
                .getSelectResults(
                        "com.ymttest.database.mapping.couponconversioncodeMapper.getTop1",
                        null);
        return result;
    }
    
}
